package io.geekidea.boot.materials.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.geekidea.boot.materials.dto.MaterialsExcel;
import io.geekidea.boot.materials.entity.Materials;
import io.geekidea.boot.materials.query.MaterialsQuery;
import io.geekidea.boot.warehousentry.query.WarehousentryQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface MaterialsMapper extends BaseMapper<Materials> {
    Page<Materials> getMaterialsPageList(Page<Materials> page, @Param("param") MaterialsQuery materialsQuery);
    int delById(@Param("id")Integer id);

    List<Materials> getMaterialsList(@Param("param") Materials materials);
    Materials getMaterialsId(String id);

    int delByNumbers(@Param("numbers")String numbers);

    List<MaterialsExcel> getDownloadList(@Param("param") MaterialsQuery materialsQuery);
}
